// import {request} from './index'
//
// export function test () {
//   return request({
//     url: 'test/'
//   })
// }
//
// export function getToken () {
//   return request({
//     url: 'getToken/'
//   })
// }
// appfront/src/api/api.js
import axiosInstance from './index'

const axios = axiosInstance

export const test = () => {
  return axios.get('test/')
}

export const createActivity = (title) => {
  return axios.post('create_activity/',
    {'title': title})
}
export const getToken = () => {
  return axios.get('getToken/')
}
